           package com.java.diagnostics.visualizer.displayer.html;
           
           import com.java.diagnostics.visualizer.coredisplayers.util.Messages;
           import com.java.diagnostics.visualizer.data.AggregateData;
           import com.java.diagnostics.visualizer.data.DataSet;
           import com.java.diagnostics.visualizer.data.TupleData;
           import com.java.diagnostics.visualizer.data.ids.ID;
           import com.java.diagnostics.visualizer.properties.OutputProperties;
           import java.io.BufferedWriter;
           import java.io.File;
           import java.io.IOException;
           
           public class CountTableTupleDataWriter extends TupleDataWriter
           {
             private static final String TOTAL = Messages.getString("HTMLReportDisplayer.total");
           
             protected CountTableTupleDataWriter(DataSet dataSet, OutputProperties outputProperties, AggregateData representativeData, BufferedWriter buffer, ID id, File directory)
             {
               super(dataSet, outputProperties, representativeData, buffer, id, directory);
             }
           
             protected void writeColumnHeadings() throws IOException
             {
               this.buffer.write(NEWLINE);
               openRow();
               if (this.dataSet.getVariants().length > 1) {
                 addTableHeader(VARIANT, 1);
               }
           
               addTableHeader(TOTAL, 1);
           
               closeRow();
               this.oddRow = false;
             }
           
             protected void addRow(TupleData data) throws IOException
             {
               if (data != null) {
                 this.buffer.write(NEWLINE);
                 addTableCell(Integer.toString(data.length()));
           
                 this.buffer.write(NEWLINE);
               }
               else {
                 this.buffer.write(NEWLINE);
                 addTableCell(Integer.toString(0));
           
                 this.buffer.write(NEWLINE);
               }
             }
           }

